<div>

    <div class="ibox ">
        <div class="ibox-title">
            <h5>
                <vc:i18n name="查询条件"></vc:i18n>
            </h5>
            <div class="ibox-tools" style="top:10px;">

            </div>
        </div>
        <div class="ibox-content">
            <div class="row">
                <div class="col-sm-2">
                    <div class="form-group">
                        <input type="text" :placeholder="vc.i18n('请选择产品名称','productSeckillManage')"
                            v-model="productSeckillManageInfo.conditions.prodName" class=" form-control">
                    </div>
                </div>
                <div class="col-sm-2">
                    <select class="custom-select" v-model="productSeckillManageInfo.conditions.killHours">
                        <option selected value="">{{vc.i18n('请选择秒杀小时','addProductSeckill')}}</option>
                        <option :value="index-1" v-for="index in 24">{{index-1}}点</option>
                    </select>
                </div>
                <div class="col-sm-2">
                    <select class="custom-select" v-model="productSeckillManageInfo.conditions.state">
                        <option selected disabled value="">{{vc.i18n('请选择状态','productSeckillManage')}}</option>
                        <option value="1001">{{vc.i18n('开启','productSeckillManage')}}</option>
                        <option value="2002">{{vc.i18n('关闭','productSeckillManage')}}</option>
                    </select>
                </div>
                <div class="col-sm-1">
                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryProductSeckillMethod()">
                        <i class="glyphicon glyphicon-search"></i> <span>
                            <vc:i18n name="查询"></vc:i18n>
                        </span>
                    </button>
                </div>
            </div>
        </div>

    </div>

    <div class="ibox">
        <div class="ibox-title">
            <h5>
                <vc:i18n name="秒杀商品" namespace="productSeckillManage"></vc:i18n>
            </h5>
            <div class="ibox-tools" style="top:10px;">
                <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddProductSeckillModal()">
                    <vc:i18n name="添加" namespace="productSeckillManage"></vc:i18n>
                </button>
            </div>
        </div>
        <div class="ibox-content">
            <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                <thead>
                    <tr>
                        <th class="text-center">商品图片</th>
                        <th class="text-center">
                            <vc:i18n name='产品名称' namespace='productSeckillManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='秒杀小时' namespace='productSeckillManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='持续小时' namespace='productSeckillManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='有效期内购买' namespace='productSeckillManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='一次购买数量' namespace='productSeckillManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='秒杀金额' namespace='productSeckillManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='单买金额' namespace='productSeckillManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='限量' namespace='productSeckillManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='状态' namespace='productSeckillManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='有效期' namespace='productSeckillManage'></vc:i18n>
                        </th>
                        <th class="text-center">
                            <vc:i18n name='操作'></vc:i18n>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr v-for="productSeckill in productSeckillManageInfo.productSeckills">
                        <td class="text-center">
                            <div style="position: relative; display: inline-block;">
                                <img width="50" height="50" style="border-radius: 10px;"
                                    :src="productSeckill.coverPhoto" v-if="productSeckill.coverPhoto">
                                <img width="50" height="50" style="border-radius: 10px;" src="/img/noPhoto.jpg" v-else>
                            </div>
                        </td>
                        <td class="text-center">{{productSeckill.prodName}}</td>
                        <td class="text-center">{{productSeckill.killHours}}</td>
                        <td class="text-center">{{productSeckill.continueHours}}</td>
                        <td class="text-center">{{productSeckill.totalCount}}</td>
                        <td class="text-center">{{productSeckill.oneCount}}</td>
                        <td class="text-center">￥{{productSeckill.killPrice}}</td>
                        <td class="text-center">￥{{productSeckill.price}}</td>
                        <td class="text-center">{{productSeckill.killStock}}</td>
                        <td class="text-center">{{productSeckill.state == '1001'?'开启':'关闭'}}</td>
                        <td class="text-center">{{productSeckill.startTime}}~{{productSeckill.endTime}}</td>
                        <td class="text-center">
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs"
                                    v-on:click="_openEditProductSeckillModel(productSeckill)">
                                    <vc:i18n name='修改'></vc:i18n>
                                </button>
                            </div>
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs"
                                    v-on:click="_openDeleteProductSeckillModel(productSeckill)">
                                    <vc:i18n name='删除'></vc:i18n>
                                </button>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            <!-- 分页 -->
            <vc:create path="frame/pagination"></vc:create>
        </div>
    </div>
    <vc:create path="group/addProductSeckill" callBackListener="" callBackFunction=""></vc:create>
    <vc:create path="group/editProductSeckill"></vc:create>
    <vc:create path="group/deleteProductSeckill"></vc:create>
</div>